package com.changyinBus.system.service.impl;

import com.changyinBus.common.core.domain.entity.SysLotteryRecords;
import com.changyinBus.common.core.domain.entity.SysWxInfo;
import com.changyinBus.system.mapper.SysLotteryRecordsMapper;
import com.changyinBus.system.service.ISysLotteryRecordsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.UnsupportedEncodingException;
import java.util.Base64;
import java.util.List;

@Service
public class SysLotteryRecordsServiceImpl implements ISysLotteryRecordsService {
    @Resource
    private SysLotteryRecordsMapper sysLotteryRecordsMapper;

    @Override
    public int insert(SysLotteryRecords record) {
        return sysLotteryRecordsMapper.insert(record);
    }

    @Override
    public int getCount(SysLotteryRecords record) {
        return sysLotteryRecordsMapper.getCount(record);
    }

    @Override
    public SysLotteryRecords selectByOpenid(String openid) {
        return sysLotteryRecordsMapper.selectByOpenid(openid);
    }

    @Override
    public List<SysLotteryRecords> selectList(SysLotteryRecords record) {
        return sysLotteryRecordsMapper.selectList(record);
    }
}
